class navPages extends React.Component {
  constructor(props) {
    super(props)
    this.state = {
      nav: this.props.nav || false
    }
  }
  render() {
    return(
      <nav className="nav-pages">
        <ul className="nav-menu-level">
          {this.state.nav.map((key, i)=> {
            return (
              <li key={i}>{key}</li>
            )
          })}
        </ul>
        {this.props.children}
      </nav>
    )
  }
}
module.exports = navPages;
